/*
 * PairInstance.java
 *
 * Created on July 10, 2007, 4:07 PM
 * Modified on Apr 15, 2010, 9:02 AM by chuter
 */

package edu.hit.irlab.coref;

import edu.hit.irlab.coref.mentionfinder.Mention;
import nlpeap.ml.AbstractInstance;
import nlpeap.ml.FeatureDescription;
import nlpeap.ml.FeatureType;

/** Stores information about pairs of mentions.
 *
 * @author versley, chuter
 */
public class PairInstance extends AbstractInstance {
    
    public static final FeatureDescription<Boolean> FD_POSITIVE=
            new FeatureDescription<Boolean>(FeatureType.FT_BOOL, "isPositive");
    boolean _label;
    Mention _anaphor;
    Mention _antecedent;
    /** Creates a new instance of PairInstance */
    public PairInstance(Mention anaphor, Mention antecedent)
    {
        _anaphor=anaphor;
        _antecedent=antecedent;  
    }
    
    public Mention getAnaphor() { return _anaphor; }
    public Mention getAntecedent() { return _antecedent; }

    public String toString() {
        return getAntecedent() + " <---> " + getAnaphor();
    }

}
